# 找出唯一不重复的

# list1=[1,2,2,1,3]
# list2=list(set(list1))
# print(list2)
#
# def func1():
#     for i in list2:
#         c=0
#         for j in list1:
#             if j==i:
#                 c+=1
#         if c==1:
#             return i
# print(func1())


# 求第h次弹起的高度 和第n次弹起总高度
h=input('请输入h的高度')
def func(h,n):
    a1=h/3
    an=a1*(1/3**(n-1))
    sn=(a1-an*(1/3))/(1-1/3)
    print(an,sn)

# import time
# s=time.time()
# # lst=[]
# # for i in range(1,1000001):
# #     lst.append(i)
# lst=[i for i in range(1,1000001)]
# e=time.time()
# print(e-s)
#
# a=0.11046886444091797
# b=0.0468904972076416